package com.wutao.panzh.service;

import com.github.pagehelper.PageInfo;
import com.panzh.entity.FoodClassification;
import com.panzh.entity.FoodItem;
import com.panzh.entity.index.Classification;
import com.panzh.entity.index.IndexFoodItem;

import java.util.HashMap;
import java.util.List;

public interface FoodItemService {

    FoodItem getFoodItemById(String foodItemId);

    void deleteFoodItemById(String foodItemId);

    PageInfo<FoodItem> getFoodItemPageInfo(Integer pageNo, Integer pageSize, String keyword);

    FoodItem getFoodItemByItemName(String itemName);

    void saveFoodItem(FoodItem resultFoodItem);

    List<FoodItem> getFoodItemAllByItemName(String itemName);

    void updateFoodItem(FoodItem foodItem);

    void insertFoodImageSrc(String imagSrc, String foodItemId);

    /**
     * 前端页面相关，返回所有的分类信息；
     * @return 分类信息的Map集合;
     */
    HashMap<String, List<Classification>> getAllClassication();

    PageInfo<IndexFoodItem> getAllIndexFoodItem(Integer pageNo, Integer classificationId);
}
